#define _CRT_SECURE_NO_WARNINGS 1
#include"seqlist.h"
void TestSeqList1()
{
	SL s1;
	SeqListInit(&s1);
	SeqListPushBack(&s1, 1);
	SeqListPushBack(&s1, 2);
	SeqListPushBack(&s1, 3);
	SeqListPushBack(&s1, 4);
	SeqListDestory(&s1);
	SeqListPushBack(&s1, 5);
	SeqListPushBack(&s1, 6);
	SeqListPopBack(&s1);
	SeqListprint(&s1);
	SeqListDestory(&s1);
}
void TestSeqList2()
{
	SL s2;
	SeqListInit(&s2);
	SeqListPushBack(&s2, 2);
	SeqListPushBack(&s2, 3);
	SeqListPushBack(&s2, 3);
	SeqListInsert(&s2, 3, 97);
	SeqListPushBack(&s2, 3);
	SeqListPushFront(&s2, 1);
	SeqListPopFront(&s2);
	SeqListInsert(&s2, 2, 7);
	
	SeqListDestory(&s2);
}
void  TestSeqList3()
{
	SL s2;
	SeqListInit(&s2);
	SeqListPushBack(&s2, 2);
	SeqListPushBack(&s2, 3);
	SeqListPushBack(&s2, 4);
	SeqListPushBack(&s2, 56);
	SeqListInsert(&s2, 2, 76);
	SeqListInsert(&s2, 0, -1);
	SeqListInsert(&s2, 6, 88);
	SeqListErase(&s2, 6);
	SeqListErase(&s2, 1);
	SeqListprint(&s2);
	SeqListDestory(&s2); 
}
int main(void)
{
	//TestSeqList1();
	//TestSeqList2();
	TestSeqList3();
	return 0;
}